package com.caxxb.entity;

import java.time.LocalDateTime;

public class Log {

    private int logid;
    private int userid;
    private String ipaddr;
    private String logintime;

    private User user = new User();

    public String getAccount_number(){
        return user.getAccount_number();
    }

    public void setAccount_number(String account_number){
        user.setAccount_number(account_number);
    }

    @Override
    public String toString() {
        return "Log{" +
                "logid=" + logid +
                ", userid=" + userid +
                ", ipaddr='" + ipaddr + '\'' +
                ", logintime='" + logintime + '\'' +
                '}';
    }

    public int getLogid() {
        return logid;
    }

    public void setLogid(int logid) {
        this.logid = logid;
    }

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public String getIpaddr() {
        return ipaddr;
    }

    public void setIpaddr(String ipaddr) {
        this.ipaddr = ipaddr;
    }

    public String getLogintime() {
        return logintime;
    }

    public void setLogintime(String logintime) {
        this.logintime = logintime;
    }

    public Log() {
    }

    public Log(int logid, int userid, String ipaddr, String logintime) {
        this.logid = logid;
        this.userid = userid;
        this.ipaddr = ipaddr;
        this.logintime = logintime;
    }
}
